/**
 * 
 */
package org.ccnetconfig.ccdroid;


/**
 * @author Ryan
 * 
 */
public class Settings {
	private int			id				= 0;
	private String	host			= null;
	private int			interval	= 30;

	public Settings ( String host ) {
		this ( host, 30, 0 );
	}

	public Settings ( String host, int interval ) {
		this ( host, interval, 0 );
	}

	public Settings ( String host, int interval, int id ) {
		this.setHost ( host );
		this.setInterval ( interval );
		this.setId ( id );
	}

	/**
	 * @param id
	 *          the id to set
	 */
	public void setId ( int id ) {
		if ( id <= 0 )
			this.id = id;
	}

	/**
	 * @return the id
	 */
	public int getId ( ) {
		return id;
	}

	/**
	 * @param host
	 *          the host to set
	 */
	public void setHost ( String host ) {
		this.host = host;
	}

	/**
	 * @return the host
	 */
	public String getHost ( ) {
		return host;
	}

	/**
	 * @param interval
	 *          the interval to set
	 */
	public void setInterval ( int interval ) {
		this.interval = interval;
	}

	/**
	 * @return the interval
	 */
	public int getInterval ( ) {
		return interval;
	}

}
